<!--
 * @Author: your name
 * @Date: 2021-12-08 18:36:17
 * @LastEditTime: 2021-12-08 18:38:43
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \new_xgmantd\src\components\tableHeaderContent.vue
-->

<template>
  <el-tooltip class="item" effect="dark" :content="content" placement="top">
    <span class="table_header_content">{{ content }}</span>
  </el-tooltip>
</template>

<script>
  export default {
    props: {
      content: {
        type: String,
        default: '',
      },
    },
  }
</script>

<style lang="scss" scoped>
  .table_header_content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    top: -2px;
  }
</style>
